﻿@using Seal.Model
@{
    Report report = Model;
    ReportView view = report.CurrentView;
    ReportModel viewModel = view.Model;

    report.CurrentModelView = view;
}

<div id='@("model_" + view.IdSuffix)' @Raw(view.AddAttribute("class", "model_class")) @Raw(view.AddAttribute("style", "model_css"))>
    @if (viewModel.Pages.Count > 1 && !report.PrintLayout && view.GetValue("model_menu_type") == "right")
    {
        <div class="row">
            <div class="tab-content col-md-@(12 - view.GetNumericValue("model_menu_width"))">
                @Include(view.GetPartialTemplateKey("Model.iPages", view), view)
            </div>
            <div class="col-md-@view.GetNumericValue("model_menu_width")">
                @Include(view.GetPartialTemplateKey("Model.iMenu", view), view)
            </div>
        </div>
    }
    else if (viewModel.Pages.Count > 1 && !report.PrintLayout && view.GetValue("model_menu_type") == "left")
    {
        <div class="row">
            <div class="col-md-@view.GetNumericValue("model_menu_width")">
                @Include(view.GetPartialTemplateKey("Model.iMenu", view), view)
            </div>
            <div class="tab-content col-md-@(12 - view.GetNumericValue("model_menu_width"))">
                @Include(view.GetPartialTemplateKey("Model.iPages", view), view)
            </div>
        </div>
    }
    else
    {
        @Include(view.GetPartialTemplateKey("Model.iMenu", view), view)
        <div class="tab-content">
            @Include(view.GetPartialTemplateKey("Model.iPages", view), view)
        </div>
    }
</div>
